package com.ftf.tp.blog.infrastructure.mapper.pos;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 文章点赞表
 *
 * @author tanghao
 * @date 2022/6/24
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "article_support")
public class ArticleSupportPO {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 点赞人id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 被点赞文章id
     */
    @TableField(value = "article_id")
    private Long articleId;

    /**
     * 创建时间
     */
    @TableField(value = "created_time",fill = FieldFill.INSERT)
    private Date createdTime;

    /**
     * 更新时间
     */
    @TableField(value = "updated_time",fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    /**
     * 类型
     */
    @TableField(value = "`type`")
    private Integer type;
}